<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <title>生成订单</title>
    <link rel="stylesheet"  href="css/order.css">
</head>
<body>
    <h1>生成订单</h1>
    <h1>商品ID: ${goods.id}</h1>
    <h1>商品名称：${goods.name}</h1>
    <p>价格: ${goods.price} 元</p>
    <p>商品图片: <img src="<%= request.getContextPath() %>/${goods.imagePath}" width="100" height="100"> </p>
    <p>详情: ${goods.mark}</p>
    <p>数量: ${goods.quantity}</p>
    <form action="CreateOrderServlet" method="post">
        选择商品ID:<input type="text"  value="${goods.id}" style="display:none;" >
        <input type="number" id="productId" name="productId"  value="${goods.id}" required><br>
        支入/支出商品数量:<input type="text"  value="${goods.quantity}" style="display:none;">
        <input type="number" id="quantity" name="quantity" required  placeholder="不能为空并且正数为支入，负数为支出"><br>
        <input type="submit" value="生成订单">
    </form>
</body>
</html>
